-include common.mk
-include $(SUBDIRS:%=%subdir.mk)

.PHONY: ly
ly:
	cd lex_yacc; yacc -d c.y; cd ..;
	cd lex_yacc; lex c.l; cd ..;
	
cc: $(OBJS) $(USR_OBJS)
	@echo 'Building $@'
	g++  $(LINK_FLAGS) -o "$@" $(OBJS)  $(USER_OBJS) $(LIBS)
	@echo 'Finish Building $@'
	
	
.PHONY: clean
clean:
	-rm cc $(OBJS) $(DEPS)
	

